package com.lv.utils.FeignClient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author: Lv_sc
 * Date:     2021/3/29 15:19
 * Description: 描述
 */

@FeignClient(value = "test",url="http://127.0.0.1:9082/web",configuration = FeignConfig.class)
public interface TestFeignClient {

    @RequestMapping(value = "/loginForWeb",method = RequestMethod.GET)
    ResultDate login(@RequestBody User user);

    @RequestMapping(value = "/config/getConfigAppList",method = RequestMethod.GET)
    ResultDate getConfigList(@RequestHeader("token")String token,@RequestHeader("loginType")String loginType);
}